<h1>Editing flashcard</h1>

<%= error_messages_for :flashcard %>

<% form_for(@flashcard) do |f| %>
  <p>
    <b>Answer</b><br />
    <%= f.text_field :answer %>
  </p>

  <p>
    <b>Question</b><br />
    <%= f.text_field :question %>
  </p>

  <p>
    <b>Set</b><br />
    <%= f.text_field :set %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @flashcard %> |
<%= link_to 'Back', flashcards_path %>
